<template>
  <div class="content">
    <el-button type="primary" @click="handleAdd">+ 添加条件</el-button>
    <el-tabs v-model="activeName">
      <el-tab-pane label="周期" name="first">
        <el-table style="width: 100%;margin-top: 20px;">
          <el-table-column prop="" label="名称"></el-table-column>
          <el-table-column prop="" label="周期类型"></el-table-column>
          <el-table-column prop="" label="时间值"></el-table-column>
          <el-table-column prop="" label="创建时间"></el-table-column>
          <el-table-column prop="" label="修改时间"></el-table-column>
          <el-table-column prop="" label="状态"></el-table-column>
          <el-table-column prop="" label="备注"></el-table-column>
          <el-table-column label="操作">
            <template>
              <el-button size="small" type="primary">修改</el-button>
              <el-button size="small" type="danger">删除</el-button>
            </template>
          </el-table-column>
        </el-table>
      </el-tab-pane>
      <el-tab-pane label="定时" name="second">
        <el-table style="width: 100%;margin-top: 20px;">
          <el-table-column prop="" label="名称"></el-table-column>
          <el-table-column prop="" label="定时类型"></el-table-column>
          <el-table-column prop="" label="时间值"></el-table-column>
          <el-table-column prop="" label="创建时间"></el-table-column>
          <el-table-column prop="" label="修改时间"></el-table-column>
          <el-table-column prop="" label="状态"></el-table-column>
          <el-table-column prop="" label="备注"></el-table-column>
          <el-table-column label="操作">
            <template>
              <el-button size="small" type="primary">修改</el-button>
              <el-button size="small" type="danger">删除</el-button>
            </template>
          </el-table-column>
        </el-table>
      </el-tab-pane>
      <el-tab-pane label="条件" name="third">
        <el-table style="width: 100%;margin-top: 20px;">
          <el-table-column prop="" label="名称"></el-table-column>
          <el-table-column prop="" label="条件类型"></el-table-column>
          <el-table-column prop="" label="y值"></el-table-column>
          <el-table-column prop="" label="z值"></el-table-column>
          <el-table-column prop="" label="创建时间"></el-table-column>
          <el-table-column prop="" label="修改时间"></el-table-column>
          <el-table-column prop="" label="状态"></el-table-column>
          <el-table-column prop="" label="备注"></el-table-column>
          <el-table-column label="操作">
            <template>
              <el-button size="small" type="primary">修改</el-button>
              <el-button size="small" type="danger">删除</el-button>
            </template>
          </el-table-column>
        </el-table>
      </el-tab-pane>
    </el-tabs>
  </div>
</template>

<script lang="ts" setup>
import { ref } from 'vue'

// 添加条件
const handleAdd = () => {

}
// 标签页
const activeName = ref('first')
</script>

<style scoped>
.content {
  width: 100%;
  height: 100%;
  font-size: 14px;
  background-color: #ffffff;
  padding: 20px;
}

:deep(.el-table) {
  border: 1px solid #ebeef5;
}

:deep(.el-table th) {
  background-color: #f5f7fa;
  color: #101010;
  font-weight: 600;
  text-align: center;
}

:deep(.el-table td) {
  padding: 12px 0;
}

:deep(.el-button) {
  margin-right: 8px;
}
</style>
